<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./public/admin/bootstrap/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/bootstrap/css/bootstrap-responsive.min.css"/>
		<script src="bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/list.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/header.css"/>		
		<link rel="stylesheet" type="text/css" href="./public/admin/css/footer.css"/>		
		<script src="./public/admin/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<script type="text/javascript">
		$(function(){
			c=0;
			$('.f_list').click(function(){				
				if(c==0){
					$(this).parent('ul').find('.s_list').slideDown();
//					alert();
					c=1;
				}else{
					$(this).parent('ul').find('.s_list').slideUp();
					c=0;
				}
			})												
		})
	</script>
	<body>
		{{include file="VIEW_PATH/Common/header.php"}}
		
		<article>
			<div class="banner">
				<span id="">				
					<a href="">品牌首页</a>
					<a href="">品牌介绍</a>
				</span>
			</div>
			<!--end banner-->
			<div class="daohang">
				<a href="{{U('Home/Index/index')}}">BOYS首页</a>
				{{foreach from="$cateleader" value="$v"}}
					{{if value="!empty($v)"}}
				&gt<a href="javascript:;">{{$v}}</a>
					{{endif}}
				{{endforeach}}
			</div>
			<!--end daohang-->
			<div class="content">
				<div class="cot_left">
					<ul>全部品类						
						{{foreach from="$leftSoncate" key="$k" value="$v"}}
							{{if value="!empty( $v['_data'])"}}
						<li>
							<ul ><a href="javascript:;" class="f_list">&gt{{$v['cname']}}</a>
								{{foreach from="$v['_data']" key="$kk" value="$vv"}}
								<li class="s_list" style="display: none"><a href="{{U('Home/List/index',array('cid'=>$vv['cid']))}}" style="font-weight: 100;">{{$vv['cname']}}</a></li>
								{{endforeach}}
							</ul>
						</li>
							{{endif}}
						{{endforeach}}
					</ul>
				</div>
				<div class="cot_right">
					<div class="tiaojian">
						<span>已选条件：</span>	<a href="" class="yixuan">BOYS</a>
						<a href="" class="qingkong">清空筛选条件</a>
					</div>
					<!--<div class="sex">
						<span>性别：</span>	<a href=""  style="color: red;">BOYS</a>  <a href="" >GIRLS</a>
					</div>-->
					<!--<div class="price">
						<span>价格：</span>	
						<a href="" >¥0-1399</a> 
						<a href="" >¥1400-1599</a> 
						<a href="" >¥1600-1999</a> 
						<a href="" >¥1999以上</a> 
						<span>¥<input type="text" name="" id="" value="" />-<input type="text" name="" id="" value="" /></span>
					</div>-->
					{{foreach from="$attrData" key="$k" value="$v"}}
						<?php
//							因为后面处理点击需要使用paramget参数，但是，后面hover效果判定时需要没有改变的param						
							$temp=$param;
						?>						
					<div class="yanse">
						<span>{{$v['name']}}：</span>
						<?php
//									为什么要赋值0参数，为了处理，不限条件
							$temp[$k]=0;
						?>
						<a href="{{U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)))}}" {{if value="$param[$k]==0"}} class="hover" {{endif}} >不限</a>
						{{foreach from="$v['value']" key="$kk" value="$vv"}}
						<?php
							$temp[$k]=$vv['gaid'];
							?>	
						<!--因为需要处理，hover效果，所以，需要将我们的get参数中的param赋值到临时变量$temp中，最终，判定hover条件的是通过param来判定-->	
						<a href="{{U('List/index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)))}}" {{if value="$param[$k]==$vv['gaid']"}}  class="hover" {{endif}}    >{{$vv['ganame']}}</a>  
						{{endforeach}}
					</div>
					{{endforeach}}
					<div class="moren">
						<span>默认</span>	
						<a href="" class="mr_lei">最新</a>
						<a href="" class="mr_lei">价格</a>
						<a href="" class="mr_lei">折扣</a>
						<a href="" class="mr_lei">新品</a>
						<a href="" class="page">1/1</a>
					</div>
							
			<!--end moren-->			
					<div class="lister">
						{{foreach from="$goodsData" key="$k" value="$v"}}

						<div class="lister_one">
							<span class="new">NEW</span>
							<a href="{{U('Content/index',array('gid'=>$v['gid']))}}"><img src="{{$v['pic']}}" style="height: 314px;"/></a>
							<div class="wenzi">
								<a href="{{U('Content/index',array('gid'=>$v['gid']))}}" style="display: block;">{{$v['gname']}}</a>
								<a href="" style="color: #666;">{{$v['bname']}}</a>
								<span id=""><del style="color: #888;">￥{{$v['marketprice']}}</del>￥{{$v['shopprice']}}</span>
							</div>
						</div>
						{{endforeach}}
						<div class="lister_one">
							<span class="new">NEW</span>
							<img src="./public/admin/images/list/list_1.jpg"/>
							<div class="wenzi">
								<a href="">DRIFTER COMPTON 纯色破洞短袖T恤</a>
								<a href="">DRIFTER COMPTON</a>
								<span id="">¥1290</span>
							</div>
						</div>					
						<div class="lister_one">
							<span class="new">NEW</span>
							<img src="./public/admin/images/list/list_1.jpg"/>
							<div class="wenzi">
								<a href="">DRIFTER COMPTON 纯色破洞短袖T恤</a>
								<a href="">DRIFTER COMPTON</a>
								<span id="">¥1290</span>
							</div>
						</div>
						<div class="lister_one">
							<span class="new">NEW</span>
							<img src="./public/admin/images/list/list_1.jpg"/>
							<div class="wenzi">
								<a href="">DRIFTER COMPTON 纯色破洞短袖T恤</a>
								<a href="">DRIFTER COMPTON</a>
								<span id="">¥1290</span>
							</div>
						</div>
						<div class="lister_one">
							<span class="new">NEW</span>
							<img src="./public/admin/images/list/list_1.jpg"/>
							<div class="wenzi">
								<a href="">DRIFTER COMPTON 纯色破洞短袖T恤</a>
								<a href="">DRIFTER COMPTON</a>
								<span id="">¥1290</span>
							</div>
						</div>
					</div>
				</div>
			</div>
		</article>
		{{include file="VIEW_PATH/Common/footer.php"}}
	</body>
</html>
